package com.wish233.loadbalance;

import com.wish233.model.register.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * @author WHH
 * 负载均衡器
 */
public interface LoadBalancer {

    /**
     *
     * @param infoList 服务列表
     * @param requestParams 请求参数
     * @return
     */
    ServiceMetaInfo select(List<ServiceMetaInfo> infoList, Map<String, Object> requestParams);

}
